package com.zhangzhan.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zhangzhan.domain.commcon.ResponseResult;
import com.zhangzhan.domain.dto.CategoryDto;
import com.zhangzhan.domain.dto.CategoryListDto;
import com.zhangzhan.domain.dto.SaveCategoryDto;
import com.zhangzhan.domain.entity.Category;
import com.zhangzhan.domain.vo.CategoryVOs;
import com.zhangzhan.domain.vo.PageVO;


/**
 * 分类表(Category)表服务接口
 *
 * @author makejava
 * @since 2022-09-10 21:11:08
 */
public interface CategoryService extends IService<Category> {

    //查询分类
    ResponseResult getCategoryList();

    ResponseResult<CategoryVOs> listAllCategory();

    //分页查询
    ResponseResult<PageVO> pageList(Integer pageNum, Integer pageSize, CategoryListDto dto);

    //新增分类
    ResponseResult saveCategory(SaveCategoryDto dto);

    //修改前回显
    ResponseResult<CategoryDto> selectById(Long id);

    //修改
    ResponseResult updateCategory(CategoryDto dto);

    //删除
    ResponseResult deleteCategory(Long[] ids);
}

